package com.example.knowledgeget1.KnowtCommon.Entity;

import jakarta.persistence.*;
import lombok.Data;

@Entity
@Data
@Table(name = "knowstatus")
public class KnowStatus {

    @EmbeddedId
    private StatusId id;

    @Column(name = "status")
    private Boolean status;

    public KnowStatus(Long stuId, Long knowId, boolean status) {
        this.id = new StatusId(stuId, knowId);
        this.status = status;
    }

    public KnowStatus() {

    }
}
